<?php
$uid = $_POST['uid'];
include ("conn.php");
include ("findPage.php");
$sql = "SELECT * FROM comment WHERE uid=".$uid;
$result = $conn->query($sql);
$arr = array();
if ($result->num_rows > 0) {
	while($row = $result->fetch_assoc()) {
		$pageInfo = findPage((int)$row['pid']);
		array_push($arr,array($pageInfo[1],$row['pid'],$row['pcoid'],$row['content'],$row['likeNum'],$row['date']));
	}
}
echo json_encode($arr);
?>